home *** CD-ROM | disk | FTP | other *** search
- Path: ccshst05.cs.uoguelph.ca!news
- From: dpiatkow@uoguelph.ca (Dariusz Piatkowski)
- Newsgroups: comp.lang.c++
- Subject: friend functions and access to private variables...
- Date: 8 Mar 1996 03:22:24 GMT
- Organization: University of Guelph
- Message-ID: <4ho95g$hjq@ccshst05.cs.uoguelph.ca>
- Reply-To: dpiatkow@uoguelph.ca (Dariusz Piatkowski)
- NNTP-Posting-Host: ppp01-23.net.uoguelph.ca
- X-Newsreader: IBM NewsReader/2 v1.2.5
-
- Hi everyone!
-
- I'm dealing with two classes, where a member function of class A is declared as
- a friend function of class B.
-
- Unfortunately this does not allow the friend function access to private variables in
- class B...what gives? Is it not legal to make such a declaration?
-
- Thanks for any hints...
-
- -Dariusz
-